From: Roger Pau Monne Date: Tue, 26 Apr 2016 10:07:48 +0000 (+0200) Subject: build: make HOSTCC conditional on the value of clang X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1242 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=e29ef948a22f29350aac1713baa0faced8239fcb;p=xen.git build: make HOSTCC conditional on the value of clang Previously HOSTCC was always hardcoded to gcc Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Reviewed-by: Doug Goldstein Reviewed-by: Wei Liu Release-acked-by: Wei Liu --- diff --git a/Config.mk b/Config.mk index a0e6d4e4e4..fd8371aef6 100644 --- a/Config.mk +++ b/Config.mk @@ -36,7 +36,6 @@ CONFIG_$(XEN_OS) := y SHELL ?= /bin/sh # Tools to run on system hosting the build -HOSTCC = gcc HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer HOSTCFLAGS += -fno-strict-aliasing @@ -50,8 +49,10 @@ DESTDIR ?= / clang ?= n ifeq ($(clang),n) gcc := y +HOSTCC ?= gcc else gcc := n +HOSTCC ?= clang endif